package routes

import (
	"probe.org/cjd/first/controller"

	"github.com/gin-gonic/gin"
)

func SetRouter() *gin.Engine {
	r := gin.Default()
	userGroup := r.Group("user")
	{
		//查看所有的User
		userGroup.GET("/users", controller.GetUserList)
	}
	return r
}
